﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AVIS.OutBound.Stores
{
    public interface IStoreRepository
    {
        /// <summary>
        /// 获取指定Code的门店信息
        /// </summary>
        /// <returns></returns>
        Store GetStoreByCode(string storeCode);

        /// <summary>
        /// 获取指定城市的门店（包含附近门店）
        /// </summary>
        IList<Store> GetStoresByCity(string cityCode, string regionCode);

        /// <summary>
        /// 搜索门店信息
        /// </summary>
        /// <param name="searchKey">搜索关键字</param>
        /// <returns></returns>
        IList<Store> QueryStore(string searchKey);
    }
}
